# @Author   : 懒羊羊
# @File     : gouwuche.py
# @Time     : 2024/12/4 20:17
import time

from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By


def gwc(wd):
    wd.find_element(By.LINK_TEXT, "加入购物车").click()

    time.sleep(3)




if __name__ == '__main__':
    wd = webdriver.WebDriver()
    wd.maximize_window()
    wd.get("http://192.168.88.102/goods.php?id=142")
    gwc(wd)
    wd.quit()
